package com.project.openapi.config;

import com.project.bean.PropertiesConfig;
import com.project.oauth2.UserDetailsService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.util.StringUtils;

import javax.annotation.Resource;

@Configuration
public class WebSecurityConfig extends com.project.oauth2.WebSecurityConfig {

    @Resource
    private PropertiesConfig propertiesConfig;

    @Override
    public void configure(WebSecurity web) throws Exception {
//
//        String matchers = "";
//        propertiesConfig.getIgnoreUlr().forEach(item -> {
//            matchers.concat(",").concat(item);
//        });
//        web.ignoring().antMatchers(matchers);
    }
}
